home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / sound.745 < prev    next >
Text File  |  1992-02-06  |  2KB  |  31 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Courier;\f1\fswiss Helvetica;}
  2. \paperw11880
  3. \paperh5640
  4. \margl120
  5. \margr1000
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 Music Kit envelope resolution\
  8. \
  9. Q:  I have a scorefile containing some notes that use the following envelope:\
  10.  
  11. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b\fs24\fc0 [(0., 4., 1.)(0.00040, 1.,
  12. \b0  
  13. \b 1.)(0.40, 0., 1.)]
  14. \b0 \
  15.  
  16. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 It doesn't play correctly; sometimes the notes play and sometimes they don't. What's wrong? \
  17. \
  18. A:  Very short envelope segments are not guaranteed to work.  Your problem will go away by changing the envelope attack times from 0.0004 to values like 0.01. Also, you can use a higher deltaT value in 
  19. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\b\fc0 MKSetDeltaT()
  20. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\b0  to provide more leeway for the Music Kit.\
  21. \
  22. The reason this problem occurs is that all parameter updates occur at the "tick rate," which is 1/16th of the sampling rate. For example, at your sampling rate of 22050 Hz, parameters may be updated only every  0.0007 seconds, so the attack time you're using (0.0004 seconds) could fall anywhere in this quantization time.   The Music Kit currently does not correct for such micro-quantization.\
  23. \
  24.  \
  25.  
  26. \fc0 QA745\
  27. \
  28. Valid for 2.0\
  29. \
  30.  
  31.